package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class WechatUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 顾客ID */
    private Long guestId;

    /** 微信id */
    @Excel(name = "微信id")
    private String wechatOpenid;

//    /** 微信会话秘钥 */
//    @TableField(exist = false)
//    private String sessionKey;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 手机号 */
    @Excel(name = "手机号")
    @NotNull(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确") // 新增正则校验
    private String mobile;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 头像地址 */
    @Excel(name = "头像地址")
    private String avatarUrl;
}
